package com.lagou.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.lagou.manager.DemoManager;
import com.lagou.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class DemoController {
    @Autowired
    private DemoManager demoManager;


    @RequestMapping("/hello")
    public String sayHello(@RequestParam(value = "name") String name){
        String s = demoManager.sayHello(name);

        String s2 = demoManager.sayHello2(name);
        return s+s2;
    }
}
